$def with (stus,sname)
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生列表</title>
</head>
<body>
    <h3 align="center">学生列表</h3>

    <div>
        <div>
            <form action="stus">
                <input type="text" name="sname" value="${sname if sname else ''}" placeholder="请输入姓名"/>
                <input type="submit" value="查询"/>
            </form>
        </div>
        <a href="toadd">添加新生</a>
    </div>
    <table border="1" cellpadding="0" cellspacing="0">
        <tr>
            <td>学号</td>
            <td>姓名</td>
            <td>手机号</td>
            <td>QQ号</td>
            <td>性别</td>
            <td>入学时间</td>
            <td>操作</td>
        </tr>
        $for x in stus:
            <tr>
            <td>$x.stuno</td>
            <td>$x.sname</td>
            <td>$x.telephone</td>
            <td>$x.qq</td>
            <td>$x.sex</td>
            <td>$x.enterdate</td>
            <td>
                <!-- studel/111   studel?id=111-->
                <a onclick="return doDel()" href="studel/$x.stuno">删除</a>
                <a href="updatestudent?stuno=$x.stuno">修改</a>
            </td>
            </tr>
    </table>
<script>
    function doDel(){
        return confirm("确定要删除吗？");
    }
</script>
</body>
</html>